<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="js/vue.js"></script>
</head>
<body>
    <div id="app">
        <!-- 表单的双向绑定    一般用于给input 绑定  获取文本框的值  -->
        <input type="text"  v-model="val">

        <p>
            {{val}}
        </p>
    </div>

    <script>


       new Vue({
        el:"#app",
        data() {
            return {
                val:""
            }
        },
       })

    </script>
</body>
</html>